<?php
header("Content-type:text/html;charset=utf-8");
include_once('dbConn.php');

$name=trim(@$_POST['name']);
$password=@$_POST['password'];
var_dump(@$_POST);

$sql = "INSERT INTO adminlogin VALUES (NULL, '$name',md5('$password'))";

if (mysqli_query($conn, $sql)) {
    echo "用户登录成功";
    echo "您的用户名是：" .$name;
} else {
    echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}

